package com.six.mapper;

import com.six.domain.entity.PayConfig;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface PayConfigMapper {
    int insert(@Param("c") PayConfig config);
    int updateById(@Param("c") PayConfig config);
    int deleteById(@Param("id") Long id);
    PayConfig selectById(@Param("id") Long id);
    List<PayConfig> selectByStore(@Param("storeId") Long storeId);
    PayConfig selectByStoreAndChannel(@Param("storeId") Long storeId,
                                      @Param("channel") String channel);
}